package org.mespilus.mespilusweb.ui.usermanagement.client;

import java.util.List;

import org.mespilus.mespilusweb.ui.usermanagement.client.model.FullMember;
import org.mespilus.mespilusweb.ui.usermanagement.client.model.UsefulGroup;
import org.mespilus.mespilusweb.ui.usermanagement.client.model.UsefulMember;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface UserManagementServiceAsync {
	void addMember(FullMember user, AsyncCallback<Void> callback);
	
	void getMembers(AsyncCallback<List<UsefulMember>> callback);
	void getMember(String mail, AsyncCallback<FullMember> callback);
	
	void addGroup(UsefulGroup group, AsyncCallback<Void> callback);
	void getGroups(AsyncCallback<List<UsefulGroup>> callback);	
}
